#!/usr/bin/python3
# -*- coding: UTF-8 -*-

from app import App
from utils.tools import Tools
from utils.element import Element

import gol
gol._init()

class Application(App):
    # 初始配置
    def __init__(self):
        # python2 不支持 super().__init__()
        App().__init__()

        self._d = App()._d
        self.tool = Tools()
        oAppInfo = self._d.info


class Action(App):
    # 初始配置
    # def __init__(self):
        # global oAppInfo
        # # python2 不支持 super().__init__()
        # App().__init__()
        # self.tool = Tools()
        # self.app = Application()
        # self._d = App()._d

    def init(self):
        self._d.set_fastinput_ime(True) # 切换成FastInputIME输入法
        self._d.send_keys(gol.get("sVal")) # adb广播输入
        self.tool.setSleep(2)
        self._d.press("enter")
        # self.tool.setSleep(2)
        # self._d.set_fastinput_ime(False) # 切换成FastInputIME输入法



action = Action()
action.init()
